<?php
class Admin_acc_info extends Blocks {
	
	private $_block_name = 'admin_acc_info';
	
	// Run function
	function run($block_settings = array())
	{
		$user_id = $this->CI->session->userdata('user_id');
		$this->CI->load->module_model('users','users_m');		
				
		$user = $this->CI->users_m->getUser(array('id'=>$user_id));
		$this->data->user = $user;
		return $this->display($this->_block_name, 'info', $this->data);
	}
	
	// Install function (executed when the user installs the widget)
	function install() 
	{		
		$title = 'title';
		$description = 'admin_acc_info';
		$this->install_block($this->_block_name,$title,$description);
	}
	
	// Uninstall function (executed when the user uninstalls the widget)
	function uninstall()
	{
		$this->uninstall_block($this->_block_name);
	}
}
?>